﻿using System;

class AskAndPrintName

            // Write a method that asks the user for his name and prints “Hello, <name>” (for example, “Hello, Peter!”). Write a program to test this method.
{
    static void Main()
    {
        printName();
    }

    static void printName()
    {
        Console.Write("Enter your name: ");
        string name = Console.ReadLine();
        Console.WriteLine("Hello, {0} !", name);
    } 
}

